/**
 * Created by Joe on 2017/2/18.
 */
public class SelfAddMinus {
    public static void main(String[] args) {
        int a = 5;//定义一个变量；
        int b = 5;
        int x = 2 * ++a;
        int y = 2 * b++;
        System.out.println("自增运算符前缀运算后a=" + a + ",x=" + x);
        System.out.println("自增运算符后缀运算后b=" + b + ",y=" + y);
    }
}
